Loader for mesh data. Parses different formats to populate the data inside meshes.
More...
Loader for mesh data. Parses different formats to populate the data inside meshes.
Currently can parse obj and some glb.
◆ fillBufferFromFile()
static bool nkGraphics::MeshLoader::fillBufferFromFile |
( |
Mesh * |
mesh, |
|
|
const std::string_view & |
pathFromData |
|
) |
| |
|
static |
Fills a mesh's memory with the content of a file.
- Parameters
-
mesh | The mesh to fill. |
pathFromData | The path of the mesh data file, relative to the working directory. See nkResources::ResourceManager for path naming conventions. |
- Returns
- Whether the filling went well (true) or not (false).
◆ loadMesh()
static MeshLoadResult nkGraphics::MeshLoader::loadMesh |
( |
const MeshLoadQuery & |
query | ) |
|
|
static |
Currently WIP, should not be used.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsGraphics/Meshes/Load/MeshLoader.h